import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';
import 'package:flutter_taotaoshipin/model/ad_event_csj_entity.dart';

AdEventCsjEntity $AdEventCsjEntityFromJson(Map<String, dynamic> json) {
  final AdEventCsjEntity adEventCsjEntity = AdEventCsjEntity();
  final bool? state = jsonConvert.convert<bool>(json['state']);
  if (state != null) {
    adEventCsjEntity.state = state;
  }
  return adEventCsjEntity;
}

Map<String, dynamic> $AdEventCsjEntityToJson(AdEventCsjEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['state'] = entity.state;
  return data;
}

extension AdEventCsjEntityExtension on AdEventCsjEntity {
  AdEventCsjEntity copyWith({
    bool? state,
  }) {
    return AdEventCsjEntity()
      ..state = state ?? this.state;
  }
}